﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />


<!DOCTYPE html>
<html lang="zh-CN">
<head>

<%@ include file="/WEB-INF/include/meta.jsp"%>
<%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ihg-theme-draft">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>

  <div class="container-fluid ihg-container has-ihg-sidemenu">

    <div class="ihg-breadcrumb">
      <ol class="breadcrumb border-breadcrumb">
        <li class="active">Session Report</li>
      </ol>
    </div>

    <div class="ihg-content-layout">
      <div class="ihg-operation-bar no-margin no-bottom-border clearfix">
        <div class="ihg-operation-group pull-right">
          <a href="${ctx.host}/session-reports/search" class="btn btn-success btn-shadow btn-shadow-success" data-target="#search" data-toggle="modal">Search</a>
        </div>
      </div>

      <table class="table table-striped ihg-table tab-pane">
        <thead>
          <tr>
            <th>NAME</th>
            <th>PARTICIPANTS</th>
            <th>DATE</th>
            <th>ADMINISTRATOR</th>
          </tr>
        </thead>
        <tbody>
          <c:forEach var="session" items="${sessions}">
            <tr>
              <td>${session.name}</td>
              <td>Assessor:${session.assessorCount}<br/>Delegate:${session.delegateCount}</td>
              <td><fmt:formatDate value="${session.startDate}" pattern="yyyy-MM-dd"/>&nbsp;&nbsp;~&nbsp;&nbsp;<fmt:formatDate value="${session.endDate}" pattern="yyyy-MM-dd"/></td>
              <td>
                Administrator: ${session.sessionHost.name}<br/>
                Assessor Owner:${session.assessorOwner.name}<br/>
                Delegate Owner:${session.delegateOwner.name}
              </td>
            </tr>
          </c:forEach>
        </tbody>
        <tfoot>
          <tr>
            <td colspan="4">
              <div class="pull-left">
                <jsp:include page="/WEB-INF/include/page.jsp">
                  <jsp:param name="url" value="${ctx.host}/session-reports" />
                  <jsp:param name="queryString" value="${queryString}" />
                </jsp:include>
              </div>
            </td>
          </tr>
        </tfoot>
      </table>
    </div>


  </div>

  <%@ include file="/WEB-INF/include/footer.jsp"%>
  <%@ include file="/WEB-INF/include/script.jsp"%>


  <d:resource root="${ctx.resource}/build" type="script" src="js/page/session/session-report-list.js" />
  <script type="text/javascript">
    require([ 'page/session/session-report-list' ], function(page) {
      page.init();
    })
  </script>
</body>

</html>
